var EpgWidget = Class.create({
	
	 initialize: function(id, opts,links) {
			this.id = id;
			this.opts =  opts;
			this.links = links;
			this.current = null;
     },
 	 index:function(id){
 		for(var i=0;i<this.links.length;i++){
 			if(this.links[i]==id){
 				return i;
 			}
 		}
 		return -1;
 	},
 	hasElement: function(id) {
 		return this.index(id)>-1;
 	},
	count:function(){
		return this.links.length; 
	},
	destroy:function(){
	}
});
